package com.dave.admin.modular.boss.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dave.admin.common.base.BaseEntity;
import lombok.Data;

/**
 * <p>
 * BOSS日志
 * </p>
 *
 * @author Dave
 */
@TableName("boss_web_log")
@Data
public class WebLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 消耗时间
     */
    private long spendTime;

    /**
     * 根路径
     */
    private String basePath;

    /**
     * URI
     */
    private String uri;

    /**
     * URL
     */
    private String url;

    /**
     * 请求类型
     */
    private String method;

    /**
     * ip地址
     */
    private String ip;

    /**
     * 请求参数
     */
    private String parameter;

    /**
     * 响应参数
     */
    private String result;


    public static final String SPEND_TIME = "spend_time";

    public static final String CREATE_TIME = "create_time";

    public static final String BASEPATH = "basePath";

    public static final String URI = "uri";

    public static final String URL = "url";

    public static final String METHOD = "method";

    public static final String IP = "ip";

    public static final String PARAMETER = "parameter";

    public static final String RESULT = "result";

    @Override
    public String toString() {
        return "WebLog{" +
                "spendTime=" + spendTime +
                ", basePath=" + basePath +
                ", uri=" + uri +
                ", url=" + url +
                ", method=" + method +
                ", ip=" + ip +
                ", parameter=" + parameter +
                ", result=" + result +
                "}";
    }
}
